:root {
  --bg: #0f1115;
  --card: #171a21;
  --text: #e6e6e6;
  --muted: #9aa4ad;
  --brand: #4f8cff;
  --brand-2: #7aa2ff;
  --border: #262a33;
  --accent: #2a303b;
}

.screen {
  position: fixed; right: 24px; bottom: 24px;
  width: 860px; height: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: flex; flex-direction: column; z-index: 9999;
}
.screen.hidden { display: none; }

.scr-header, .scr-footer {
  height: 42px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; background: var(--accent); border-bottom: 1px solid var(--border);
}
.scr-footer { border-top: 1px solid var(--border); border-bottom: 0; height: 36px; font-size: 12px; color: var(--muted); }
.scr-title { font-weight: 600; }

.icon-btn {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  width: 28px; height: 28px; border-radius: 6px;
  margin-left: 8px; cursor: pointer;
}
.icon-btn:hover { background: #222732; }

.scr-body { flex: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 0; }

.scr-episodes { border-right: 1px solid var(--border); overflow: hidden; }
.ep-list {
  height: 100%; overflow: auto; padding: 10px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.ep-btn {
  width: 100%; padding: 8px; border-radius: 8px;
  background: #1c212b; color: var(--text);
  border: 1px solid var(--border); cursor: pointer; text-align: left;
}
.ep-btn:hover { background: #232a36; }
.ep-btn.active { outline: 2px solid var(--brand); background: #1c2435; }

.scr-player { position: relative; padding: 10px; display: flex; align-items: center; justify-content: center; }
#screen-video { width: 100%; height: 100%; max-height: calc(480px - 42px - 36px - 20px); background: #000; border-radius: 10px; }
.screen-status {
  position: absolute; left: 20px; bottom: 20px;
  padding: 6px 10px; background: rgba(0,0,0,.5);
  border-radius: 6px; color: #ddd; font-size: 12px;
}

@media (max-width: 960px) {
  .screen { right: 12px; bottom: 12px; width: calc(100vw - 24px); height: 60vh; }
  .scr-body { grid-template-columns: 1fr; }
  .ep-list { grid-template-columns: repeat(3, 1fr); }
}